/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package models;

import java.util.*;
import javax.persistence.*;
 
import play.db.jpa.*;

@Entity
public class Note extends Model{ //статья
    public String name_of_note;
    public String photo;
    @Lob
    public String info;//сожержание
    
    @OneToMany
    public Comment comment;
    @ManyToOne 
    public Author author;
    @ManyToMany 
    public Team team;
    @ManyToMany
    public Person person;
    
    Note(Author author,String info,String name_of_note){
        this.author=author;
        this.info=info;
        this.name_of_note=name_of_note;
    }
}
